TARGET=simulationcrowd
CAVEDIR=/usr/local/CAVE/
OBJS=cave_main.o opengl_3.o
LDFLAGS=-L$(CAVEDIR)/lib64/ -Wall -Wextra -pedantic -ggdb
CXXFLAGS=-Wall -Wextra -pedantic -O2 -D_CAVE_ -DCAVE_THREAD -ggdb -std=c++0x
INC=-I$(CAVEDIR)/include
LIB=-lcave_ogl_mt -lXi -lGL -lGLU -pthread -lGLEW
CXX=g++

all: $(TARGET)

$(TARGET): $(OBJS)
	$(CXX) -o $@ $^ $(LIBS) $(LDFLAGS) $(LIB) 
	
%.o: %.cpp
	$(CXX) $(LIBS) $(CXXFLAGS) $(INC) -c -o $@ $^

clean:
	@rm -rf $(TARGET) $(OBJS)
